package com.unionpay.mobile.android.pboctransaction.icfcc;

import com.unionpay.mobile.android.pboctransaction.e;

public final class c
{
  public static String a(String paramString1, String paramString2)
  {
    int i = 1;
    if (paramString1 == null)
      return null;
    byte[] arrayOfByte1 = e.a(paramString1);
    int j = 0;
    if (j < arrayOfByte1.length)
      if ((byte)(0x1F & arrayOfByte1[j]) != 31)
        break label529;
    label517: label529: for (int k = 2; ; k = i)
    {
      byte[] arrayOfByte2 = new byte[k];
      System.arraycopy(arrayOfByte1, j, arrayOfByte2, 0, k);
      int i4;
      int i5;
      if (e.a(arrayOfByte2, k).compareToIgnoreCase(paramString2) == 0)
      {
        i4 = k + j;
        if ((byte)(0x80 & arrayOfByte1[i4]) != -128)
          i5 = 0xFF & arrayOfByte1[i4];
      }
      while (true)
      {
        byte[] arrayOfByte3 = new byte[i5];
        System.arraycopy(arrayOfByte1, i4 + i, arrayOfByte3, 0, i5);
        return e.a(arrayOfByte3, i5);
        i = 1 + (0x7F & arrayOfByte1[i4]);
        if (i == 2)
        {
          i5 = 0xFF & arrayOfByte1[(i4 + 1)];
        }
        else if (i == 3)
        {
          i5 = (0xFF & arrayOfByte1[(i4 + 1)]) << 8 | 0xFF & arrayOfByte1[(i4 + 2)];
        }
        else if (i == 4)
        {
          i5 = (0xFF & arrayOfByte1[(i4 + 1)]) << 16 | (0xFF & arrayOfByte1[(i4 + 2)]) << 8 | 0xFF & arrayOfByte1[(i4 + 3)];
          continue;
          int i2;
          if ((0x20 & arrayOfByte1[j]) == 32)
          {
            i2 = k + j;
            if ((i2 >= arrayOfByte1.length) || ((byte)(0x80 & arrayOfByte1[i2]) != -128))
              break label517;
          }
          for (int i3 = 1 + (0x7F & arrayOfByte1[i2]); ; i3 = i)
          {
            j = i3 + i2;
            break;
            int m = j + k;
            int i1;
            if ((m < arrayOfByte1.length) && ((byte)(0x80 & arrayOfByte1[m]) == 0))
            {
              i1 = 0xFF & arrayOfByte1[m];
              n = i;
              j = m + (i1 + n);
              break;
            }
            if (m < arrayOfByte1.length);
            for (int n = 1 + (0x7F & arrayOfByte1[m]); ; n = 0)
            {
              if ((n == 2) && (m + 1 < arrayOfByte1.length))
              {
                i1 = 0xFF & arrayOfByte1[(m + 1)];
                break;
              }
              if ((n == 3) && (m + 2 < arrayOfByte1.length))
              {
                i1 = (0xFF & arrayOfByte1[(m + 1)]) << 8 | 0xFF & arrayOfByte1[(m + 2)];
                break;
              }
              if ((n == 4) && (m + 2 < arrayOfByte1.length))
              {
                i1 = (0xFF & arrayOfByte1[(m + 1)]) << 16 | (0xFF & arrayOfByte1[(m + 2)]) << 8 | 0xFF & arrayOfByte1[(m + 3)];
                break;
                return null;
              }
              i1 = 0;
              break;
            }
          }
        }
        else
        {
          i5 = 0;
        }
      }
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.unionpay.mobile.android.pboctransaction.icfcc.c
 * JD-Core Version:    0.6.2
 */